﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace decorPatternSample
{
    class ham: extraDecor
    {
        pizza p;
        public ham(pizza p )
        {
            this.p = p;
        }

        public override string getDesc()
        {
            return p.getDesc() + " with ham ";
        }

        public override double cost()
        {
            return p.cost() + 3;
        }
    }

}
